package com.imooc.springcloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.turbine.EnableTurbine;

/**
 * @describte:TODO
 * @program:spring-cloud-demo
 * @author:zhengdp
 * @create:2021-10-03 22:57:54
 **/
@EnableDiscoveryClient  // 去Eureka中寻找到特定服务的机器列表
@EnableHystrix // 等同于 @EnableCircuitBreaker
@EnableTurbine
@EnableAutoConfiguration // 启动自动装配 为什么不使用SpringBootApplication注解
public class TurbineApplication {
    public static void main(String[] args)  {
        new SpringApplicationBuilder(TurbineApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
